package code;

import java.util.Scanner;

public class QuestionNum_04_2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int salary = 0;
        int addSalary = 0;
        System.out.println("请输入你的基本工资:");
        int basicSalary = sc.nextInt();
        System.out.println("请输入你的工龄");
        int hiredate = sc.nextInt();
        if (hiredate >= 10 && hiredate < 15){
            salary = basicSalary + 5000;
            addSalary = 5000;
        }else if (hiredate > 5 && hiredate <10){
            salary = basicSalary + 2500;
            addSalary = 2500;
        }else if (hiredate >= 3 && hiredate < 5){
            salary = basicSalary + 1000;
            addSalary = 1000;
        }else if (hiredate >= 1 && hiredate < 3){
            salary = basicSalary + 500;
            addSalary = 500;
        }else if(hiredate >= 0){
            salary = basicSalary + 200;
            addSalary = 200;
        }else{
            System.out.println("输入错误");
        }

        System.out.println("您目前工作了"+hiredate+"年,基本工资为"+basicSalary+
                "元,应涨工资为"+addSalary+",涨后工资"+salary);



    }
}
